package com.lingyuan.oms.remote;

import com.lingyuan.common.core.domain.R;
import com.lingyuan.common.core.domain.vo.pms.ProductSkuVo;
import com.lingyuan.common.core.domain.vo.ums.MemberAddressVo;
import com.lingyuan.common.core.domain.vo.ums.MemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("lingyuan-ums")
public interface UmsRemoteService {
    /* *
     * @Title: findByUserId
     * @Author: DELL
     * @Date: 2024-09-21 12:06:43
     * @Params: [userId]
     * @Return: R<List<MemberAddressVo>>
     * @Description: 根据用户id查询会员收货地址
     */
    @GetMapping("memberAddress/findMemberByIdAddressList/{userId}")
    public R<List<MemberAddressVo>> findMemberByIdAddressList(@PathVariable("userId") Long userId);


    /* *
     * @Title: findById
     * @Author: DELL
     * @Date: 2024-09-21 12:06:56
     * @Params: [id]
     * @Return: R<MemberAddressVo>
     * @Description: 根据id查询会员收货地址
     */
    @GetMapping("memberAddress/findById/{id}")
    public R<MemberAddressVo> findById(@PathVariable("id") Long id);

    /* *
     * @Title: findMemberById
     * @Author: DELL
     * @Date: 2024-09-21 28:06:56
     * @Params: [id]
     * @Return: R<MemberVo>
     * @Description: 根据id查询会员收货地址
     */
    @GetMapping("member/findMemberById/{id}")
    public R<MemberVo> findMemberById(@PathVariable("id") Long id);
}
